import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import local_get from '@dfeidao/atom-web/local/get';
import local_set from '@dfeidao/atom-web/local/set';
import render from '@dfeidao/atom-web/render/render';
import P01 from './P01';

// 接收选择控制点返回的选中数据并渲染至控制点列表中
export default async function a006(fd: IFeidaoAiBrowserComponent, args: { data: [] }) {
	let data = new Array();
	if (local_get(fd, "data")) {
		data = local_get(fd, "data");
	}
	Array.from(args.data).forEach((a) => {
		data.push(a);
	});
	local_set(fd, "data", data);
	render(fd, data, P01, 'P01', 'inner');
}
